package com.gali.juc;


/**
 * @Auther: gali
 * @Date: 2022-08-19 15:57
 * @Description:
 */
public class LockSync {
    Object object=new Object();
    public void m1(){
        synchronized (object){
            System.out.println("hello synchronized");
        }
    }
    public synchronized void m2(){
        System.out.println("hello m2");
    }
    public static synchronized void m3(){
        System.out.println("hello m3");
    }
    public static void main(String[] args) {

    }
}
